package com.kygeng.common.model.document;

import lombok.Data;
import org.springframework.data.elasticsearch.core.geo.GeoPoint;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "park_geo_info")
public class ParkGeoInfoDoc {

    @Id
    private Integer id;

    @Field(type = FieldType.Text)
    private String parkId;

    @Field(type = FieldType.Text)
    private String parkName;

    @Field(type = FieldType.Text)
    private String areaCode;

    @Field(type = FieldType.Text)
    private String addrPointStr;

    @Field(type = FieldType.Text)
    private String addrInfo;

    @Field
    private GeoPoint location;
}